package com.weifly.jettycn.util;

import java.util.ArrayList;
import java.util.List;

/**
 * 调用结果
 * 
 * @author weijx
 * @date 2011-10-06
 */
public class CallResult {

	/**
	 * 为true，则说明调用成功
	 */
	private boolean success = true;
	
	/**
	 * 错误描述信息集合
	 */
	private List<String> messages = new ArrayList<String>();
	
	/**
	 * 自定义参数
	 */
	private Object param;
	
	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public List<String> getMessages() {
		return messages;
	}

	public void setMessages(List<String> messages) {
		this.messages = messages;
	}
	
	public void addMessage(String message){
		this.messages.add(message);
	}

	public Object getParam() {
		return param;
	}

	public void setParam(Object param) {
		this.param = param;
	}

}
